package problem2;

import java.util.Date;

public class WashingMachine extends Household{
    private double capacity;

    public WashingMachine(String brand, Date productDate, double capacity) {
        super(brand, productDate);
        this.capacity = capacity;
    }

    public double getCapacity() {
        return capacity;
    }

    public void setCapacity(double capacity) {
        this.capacity = capacity;
    }

    @Override
    public String toString() {
        return "WashingMachine: " + "brand = " + super.getBrand() +
                " productDate = " + super.getProductDateString()+
                " capacity = " + capacity;
    }

}
